package DecoratorPattern.example;

public class CPU extends Component {
    private final String name;

    public CPU(String name) {
        this.name = name;
    }

    @Override
    public void work() {
        System.out.println("CPU " + name + " is working!");
    }
}
